package com.ruiysoft.controller.wx.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Objects;

/**
 * OrderPayDto
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2018-11-03T17:06:08.758+08:00")

public class OrderPayDto implements Serializable {

  private static final long serialVersionUID = 1L;

  @JsonProperty("shopId")
  private Long shopId = null;

  @JsonProperty("personnelId")
  private Long personnelId = null;

  @JsonProperty("transactionNo")
  private String transactionNo = null;

  /**
   * @see OrderPay.payType
   */
  @JsonProperty("payType")
  private Integer payType;

  @JsonProperty("productDesc")
  private String productDesc = null;

  @JsonProperty("payAmount")
  private BigDecimal payAmount = null;

  @JsonProperty("attach")
  private String attach = null;

  public Long getShopId() {
    return shopId;
  }

  public OrderPayDto setShopId(Long shopId) {
    this.shopId = shopId;
    return this;
  }

  public Long getPersonnelId() {
    return personnelId;
  }

  public OrderPayDto setPersonnelId(Long personnelId) {
    this.personnelId = personnelId;
    return this;
  }

  public String getTransactionNo() {
    return transactionNo;
  }

  public OrderPayDto setTransactionNo(String transactionNo) {
    this.transactionNo = transactionNo;
    return this;
  }


  public Integer getPayType() {
    return payType;
  }

  public OrderPayDto setPayType(Integer payType) {
    this.payType = payType;
    return this;
  }

  public OrderPayDto productDesc(String productDesc) {
    this.productDesc = productDesc;
    return this;
  }

  /**
   * Get productDesc
   * @return productDesc
  **/
  @ApiModelProperty(value = "")


  public String getProductDesc() {
    return productDesc;
  }

  public OrderPayDto setProductDesc(String productDesc) {
    this.productDesc = productDesc;
    return this;
  }

  public OrderPayDto payAmount(BigDecimal payAmount) {
    this.payAmount = payAmount;
    return this;
  }

  /**
   * Get payAmount
   * @return payAmount
  **/
  @ApiModelProperty(value = "")

  @Valid

  public BigDecimal getPayAmount() {
    return payAmount;
  }

  public OrderPayDto setPayAmount(BigDecimal payAmount) {
    this.payAmount = payAmount;
    return this;
  }

  public String getAttach() {
    return attach;
  }

  public OrderPayDto setAttach(String attach) {
    this.attach = attach;
    return this;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    OrderPayDto orderPayDto = (OrderPayDto) o;
    return Objects.equals(this.transactionNo, orderPayDto.transactionNo) &&
        Objects.equals(this.productDesc, orderPayDto.productDesc) &&
        Objects.equals(this.payAmount, orderPayDto.payAmount);
  }

  @Override
  public int hashCode() {
    return Objects.hash(transactionNo, productDesc, payAmount);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class OrderPayDto {\n");
    sb.append("    transactionNo: ").append(toIndentedString(transactionNo)).append("\n");
    sb.append("    attach: ").append(toIndentedString(attach)).append("\n");
    sb.append("    payType: ").append(toIndentedString(payType)).append("\n");
    sb.append("    productDesc: ").append(toIndentedString(productDesc)).append("\n");
    sb.append("    payAmount: ").append(toIndentedString(payAmount)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

